/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.server.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aeky.domain.Menu;
import com.aeky.server.dao.IMenuDao;
import com.aeky.server.service.IPrepareDataService;

/**
 * 加载基础数据
 * 
 * @author aeky
 */
@Service("prepareDataService")
public class PrepareDataServiceImpl implements IPrepareDataService {

    @Autowired
    private IMenuDao menuDao;

    /*
     * (non-Javadoc)
     * 
     * @see
     * com.aeky.server.service.IPrepareDataService#findMenuByLoginName(java.
     * lang.String)
     */
    @Override
    public List<Menu> findMenuByLoginName(String loginName) {
        return menuDao.findAllValidMenuByLoginName(loginName);
    }

}
